package com.ruiysoft.entity.comment;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value = "com.ruiysoft.entity.comment.MerchandiseComment")
@Data
@TableName(value = "merchandise_comment")
public class MerchandiseComment implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "null")
    private Integer id;

    /**
     * 商品id
     */
    @TableField(value = "spu_id")
    @ApiModelProperty(value = "商品id")
    private Long spuId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 店铺id
     */
    @TableField(value = "shop_id")
    @ApiModelProperty(value = "店铺id")
    private Long shopId;

    /**
     * 用户微信id
     */
    @TableField(value = "personal_id")
    @ApiModelProperty(value = "用户微信id")
    private Long personalId;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    @ApiModelProperty(value = "昵称")
    private String nickName;

    /**
     * 头像地址
     */
    @TableField(value = "head_img_url")
    @ApiModelProperty(value = "头像地址")
    private String headImgUrl;

    /**
     * 评论图片
     */
    @TableField(value = "pic")
    @ApiModelProperty(value = "评论图片")
    private String pic;

    /**
     * 评论内容
     */
    @TableField(value = "comment_content")
    @ApiModelProperty(value = "评论内容")
    private String commentContent;

    /**
     * 评论状态 0：审核通过 1：未审核（审核中） 2：审核不通过
     */
    @TableField(value = "comment_status")
    @ApiModelProperty(value = "评论状态 0：审核通过 1：未审核（审核中） 2：审核不通过")
    private Integer commentStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;

    /**
     * 修改时间
     */
    @TableField(value = "modify_date")
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifyDate;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_SPU_ID = "spu_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_SHOP_ID = "shop_id";

    public static final String COL_PERSONAL_ID = "personal_id";

    public static final String COL_NICK_NAME = "nick_name";

    public static final String COL_HEAD_IMG_URL = "head_img_url";

    public static final String COL_PIC = "pic";

    public static final String COL_COMMENT_CONTENT = "comment_content";

    public static final String COL_COMMENT_STATUS = "comment_status";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_MODIFY_DATE = "modify_date";
}